package com.example.software.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.software.entity.RecodeEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 
 * 
 * @author wxy
 * @email wxy9496099@163.com
 * @date 2024-10-28 10:54:36
 */
@Mapper
public interface RecodeDao extends BaseMapper<RecodeEntity> {

    @Select("select * from recode where doctor_id = #{doctorId} and state = 2")
    List<RecodeEntity> getByDoctorId(Long doctorId);

    IPage<RecodeEntity> selectRecodePage(Page<RecodeEntity> page2, Long doctorId, Integer state, String name);


}
